package com.ruoyi.domain;

import java.io.Serializable;

/**
 * 增值保障#goods_safeguard_type#说明: 免费包邮    七天无理由退换    极速退款    退货运费险
 * @TableName goods_safeguard_type
 */
public class GoodsSafeguardType implements Serializable {
    /**
     * 类型主键#primary
     */
    private Integer safeguardTypeId;

    /**
     * 类型名称
     */
    private String safeguardTypeName;

    /**
     * 类型说明
     */
    private String safeguardTypeInfo;

    private static final long serialVersionUID = 1L;

    /**
     * 类型主键#primary
     */
    public Integer getSafeguardTypeId() {
        return safeguardTypeId;
    }

    /**
     * 类型主键#primary
     */
    public void setSafeguardTypeId(Integer safeguardTypeId) {
        this.safeguardTypeId = safeguardTypeId;
    }

    /**
     * 类型名称
     */
    public String getSafeguardTypeName() {
        return safeguardTypeName;
    }

    /**
     * 类型名称
     */
    public void setSafeguardTypeName(String safeguardTypeName) {
        this.safeguardTypeName = safeguardTypeName;
    }

    /**
     * 类型说明
     */
    public String getSafeguardTypeInfo() {
        return safeguardTypeInfo;
    }

    /**
     * 类型说明
     */
    public void setSafeguardTypeInfo(String safeguardTypeInfo) {
        this.safeguardTypeInfo = safeguardTypeInfo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GoodsSafeguardType other = (GoodsSafeguardType) that;
        return (this.getSafeguardTypeId() == null ? other.getSafeguardTypeId() == null : this.getSafeguardTypeId().equals(other.getSafeguardTypeId()))
            && (this.getSafeguardTypeName() == null ? other.getSafeguardTypeName() == null : this.getSafeguardTypeName().equals(other.getSafeguardTypeName()))
            && (this.getSafeguardTypeInfo() == null ? other.getSafeguardTypeInfo() == null : this.getSafeguardTypeInfo().equals(other.getSafeguardTypeInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSafeguardTypeId() == null) ? 0 : getSafeguardTypeId().hashCode());
        result = prime * result + ((getSafeguardTypeName() == null) ? 0 : getSafeguardTypeName().hashCode());
        result = prime * result + ((getSafeguardTypeInfo() == null) ? 0 : getSafeguardTypeInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", safeguardTypeId=").append(safeguardTypeId);
        sb.append(", safeguardTypeName=").append(safeguardTypeName);
        sb.append(", safeguardTypeInfo=").append(safeguardTypeInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}